<!DOCTYPE html>
<html>
<head>
<style>
div{
    width:100px;
    height: 100px;  
    background: red;
}
</style>
</head>
<body >
<div id="wo">
    ww
</div>
<script>
  var fir=1
    function aa(e){
        var first=e.target
        var type=e.type
        if(first="div")
        if(type="mouseup")
        document.write("www.baidu.com")
    } 
 
    // document.getElementById('wo').onclick=aa
   var wo=document.getElementById('wo')
   wo.addEventListener("mouseup" ,aa)
</script>
</body>
</html>
